package com.poly.flowable.controller;

import com.poly.common.core.domain.R;
import com.poly.common.core.web.controller.BaseController;
import com.poly.flowable.domain.SysDeployForm;
import com.poly.flowable.service.ISysDeployFormService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>工作流任务管理<p>
 *
 * @author Yang Huijing
 * @date 2021-04-03
 */
@Slf4j
@Api(tags = "工作流流程任务管理")
@RestController
@RequestMapping("/deploy/form")
public class DeployFormController  extends BaseController {


    @Autowired
    private ISysDeployFormService sysDeployFormService;
    /**
     * 挂载流程表单
     */
    @PostMapping("/addDeployForm")
    public R addDeployForm(@RequestBody SysDeployForm sysDeployForm) {
        return toResult(sysDeployFormService.insertSysDeployForm(sysDeployForm));
    }

}
